import request from '@/utils/request'
import qs from 'qs'

export function findListByPage(params) {
  return request({
    url: '/api/script/convert/list' + '?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}
export function downloadFile(pkIds) {
  return request({
    url: '/api/script/convert/list/download/file/' + pkIds,
    method: 'get'
  })
}
export function del(pkId) {
  return request({
    url: '/api/script/convert/list/' + pkId,
    method: 'delete'
  })
}
export function queryById(pkId) {
  return request({
    url: '/api/script/convert/list/' + pkId,
    method: 'get'
  })
}
export function upload(upload) {
  return request({
    url: '/api/script/convert/list/upload',
    method: 'post',
    data: upload
  })
}
export default {
  findListByPage,
  del,
  queryById,
  upload,
  downloadFile
}
